package com.hddznet.uniplatform.sm.entity;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModelProperty;

/**
 * sys_dict实体类
 * @author torres
 * @date 2020-05-08 11:36:25
 */
@TableName("sys_dict")
public class SysDictEntity extends BaseEntity implements Serializable {
    /**
     * @Fields dictType 字典类型1为string,2为number
     */
	@TableField(value = "dict_type")
	@ApiModelProperty(value = "数据字典数据类型1字符，2数字", name = "dictType", required = false,  example = "1")
    private Integer dictType;

    /**
     * @Fields dictName 字典名称
     */
    @TableField(value = "dict_name")
    private String dictName;

    /**
     * @Fields dictCode 字典编码
     */
    @TableField(value = "dict_code")
    private String dictCode;

    /**
     * @Fields description 描述
     */
    private String description;
    
    @TableField(exist = false)
    private List<SysDictItemEntity> sysDictItemEntityList;

    private static final long serialVersionUID = 1L;

    /**
     * 获取 字典类型1为string,2为number 字段:sys_dict.dict_type
     *
     * @return sys_dict.dict_type, 字典类型1为string,2为number
     */
    public Integer getDictType() {
        return dictType;
    }

    /**
     * 设置 字典类型1为string,2为number 字段:sys_dict.dict_type
     *
     * @param dictType the value for sys_dict.dict_type, 字典类型1为string,2为number
     */
    public void setDictType(Integer dictType) {
        this.dictType = dictType;
    }

    /**
     * 获取 字典名称 字段:sys_dict.dict_name
     *
     * @return sys_dict.dict_name, 字典名称
     */
    public String getDictName() {
        return dictName;
    }

    /**
     * 设置 字典名称 字段:sys_dict.dict_name
     *
     * @param dictName the value for sys_dict.dict_name, 字典名称
     */
    public void setDictName(String dictName) {
        this.dictName = dictName;
    }

    /**
     * 获取 字典编码 字段:sys_dict.dict_code
     *
     * @return sys_dict.dict_code, 字典编码
     */
    public String getDictCode() {
        return dictCode;
    }

    /**
     * 设置 字典编码 字段:sys_dict.dict_code
     *
     * @param dictCode the value for sys_dict.dict_code, 字典编码
     */
    public void setDictCode(String dictCode) {
        this.dictCode = dictCode;
    }

    /**
     * 获取 描述 字段:sys_dict.description
     *
     * @return sys_dict.description, 描述
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置 描述 字段:sys_dict.description
     *
     * @param description the value for sys_dict.description, 描述
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * :sys_dict
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dictType=").append(dictType);
        sb.append(", dictName=").append(dictName);
        sb.append(", dictCode=").append(dictCode);
        sb.append(", description=").append(description);
        sb.append("]");
        return sb.toString();
    }

	public List<SysDictItemEntity> getSysDictItemEntityList() {
		return sysDictItemEntityList;
	}

	public void setSysDictItemEntityList(List<SysDictItemEntity> sysDictItemEntityList) {
		this.sysDictItemEntityList = sysDictItemEntityList;
	}
}